SRC = queue
OBJ = $(SRC)-en.pdf
OBJ_CN = $(SRC)-zh-cn.pdf
TEX = xelatex

.PHONY: all

all: tex

cn: $(OBJ_CN)

en: $(OBJ)

image:
	$(MAKE) -C img

tex: $(OBJ) $(OBJ_CN)

%.pdf: %.tex image
	$(TEX) $<
	$(TEX) $<

clean:
	rm -f *.4ct *.4tc *.aux *.css *.dvi *.html
	rm -f *.idv *.lg *.log *.out *.pdf *.tmp *.xref *.cache *.zip *~
